/* $Id: ScannerException.h 27 2011-09-16 13:28:08Z skagget77 $ */

/*!
 * \file
 * \author  Johan Andersson <skagget77@gmail.com>
 * \date    Wed Feb 17 15:35 2010
 * \ingroup IoCpp
 * \brief   IoCpp Scanner EDSL.
 */

#if !defined(IOCPP_SCANNEREXCEPTION_H)
#define IOCPP_SCANNEREXCEPTION_H

#include <stdexcept>

namespace IoCpp
{
   /*!
    * \author  Johan Andersson <skagget77@gmail.com>
    * \date    Wed Feb 17 15:35 2010
    * \ingroup IoCpp
    * \brief   The LibraryNotFoundException class, part of IoCpp Scanner EDSL.
    *
    * \details LibraryNotFoundException, thrown when the container cannot find
    *          the required library.
    */
   struct LibraryNotFoundException : std::runtime_error 
   {
      /*!
       * Creates a new instance of the LibraryNotFoundException class.
       *
       * \param msg The detailed message.
       */
      PathNotFoundException( const std::string& msg )
         : std::runtime_error(msg) {
      }
   };

   /*!
    * \author  Johan Andersson <skagget77@gmail.com>
    * \date    Wed Feb 17 15:35 2010
    * \ingroup IoCpp
    * \brief   The PathNotFoundException class, part of IoCpp Scanner EDSL.
    *
    * \details PathNotFoundException, thrown when the container cannot find the
    *          required path.
    */
   struct PathNotFoundException : std::runtime_error 
   {
      /*!
       * Creates a new instance of the PathNotFoundException class.
       *
       * \param msg The detailed message.
       */
      PathNotFoundException( const std::string& msg )
         : std::runtime_error(msg) {
      }
   };
}

#endif   // IOCPP_SCANNEREXCEPTION_H
